package guyubao.com.entity.vo.request;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 修改用户名
 * @author wxa
 */
@Data
@Schema(description = "修改用户名")
public class ResetUsernameVoRequest {
    @Length(min=1,max=20)
    String id;
    @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]+$|^[A-Za-z0-9\\u4e00-\\u9fa5]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")
    @Length(min=2,max=100)
    String username;
    @Length(max=6,min=6)
    String code;
}
